package com.dime.physical.mapper;

import java.util.List;
import com.dime.physical.domain.DimePhysicalpicture;
import org.apache.ibatis.annotations.Param;

/**
 * 人员图片Mapper接口
 * 
 * @author Tiny
 * @date 2023-09-14
 */
public interface DimePhysicalpictureMapper 
{
    /**
     * 查询人员图片
     * 
     * @param id 人员图片主键
     * @return 人员图片
     */
    public DimePhysicalpicture selectDimePhysicalpictureById(String id);

    /**
     * 查询人员图片列表
     * 
     * @param dimePhysicalpicture 人员图片
     * @return 人员图片集合
     */
    public List<DimePhysicalpicture> selectDimePhysicalpictureList(DimePhysicalpicture dimePhysicalpicture);

    public List<DimePhysicalpicture> selectDimePhysicalpictureByphysicalRegisterId(String physicalRegisterId);
    /**
     * 新增人员图片
     * 
     * @param dimePhysicalpicture 人员图片
     * @return 结果
     */
    public int insertDimePhysicalpicture(DimePhysicalpicture dimePhysicalpicture);

    /**
     * 修改人员图片
     * 
     * @param dimePhysicalpicture 人员图片
     * @return 结果
     */
    public int updateDimePhysicalpicture(DimePhysicalpicture dimePhysicalpicture);

    /**
     * 删除人员图片
     * 
     * @param id 人员图片主键
     * @return 结果
     */
    public int deleteDimePhysicalpictureById(String id);

    /**
     * 批量删除人员图片
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDimePhysicalpictureByIds(String[] ids);

    public  int deleteDimePhysicalpictureByPhysicalId(String physicalId);


    public  void deleteDimePhysicalpictureByPhysicalIdAndGroupId(@Param("physicalRegisterId") String physicalRegisterId, @Param("dimeBasegroupid")String dimeBasegroupid);
}
